package com.mf.service;
import com.mf.entity.dto.DtoRiveDetail;

import com.mf.entity.req.ReqRelevancyById;
import com.mf.entity.req.publicReq.ReqPublicIds;
import com.mf.entity.req.search.SearchReqRiveDetail;

import java.util.List;
import java.util.Map;


/**
 * 撕碎投入明细
 *
 * 
 */
public interface ServiceRiveDetail extends BaseService<DtoRiveDetail,SearchReqRiveDetail> {
    /**
     * 保存
     */
    void saveDetail(List<Integer> detailIds,Integer riveId, Integer sourceId, Integer workSource);

    /**
     * 删除
     */
    void removeDetailById(Integer riveId,Integer id);

    /**
     * 根据源id，类型查询对应map集合
     */
    Map<Integer, DtoRiveDetail> getDtoRiveDetailMap(Integer riveId, Integer nextProcess);
    /**
     * 根据id,关联id，类型设置关联信息
     */
    void setRelevancy(List<ReqRelevancyById> relevancyByIds, Integer sourceId, Integer relevancyType);
}

